package br.urca.controller;

import java.util.List;

import javax.inject.Inject;

import br.com.caelum.vraptor.Controller;
import br.com.caelum.vraptor.Result;
import br.urca.dao.DisciplinaDAO;
import br.urca.interceptor.InterceptResource;
import br.urca.model.Disciplina;

@Controller
@InterceptResource
public class DisciplinasController {

	private DisciplinaDAO mDAO;
	private Result result;
	
	public DisciplinasController() { }
	
	@Inject
	public DisciplinasController(DisciplinaDAO mDAO, Result result) {
		this.mDAO = mDAO;
		this.result = result;
	}
	
	public List<Disciplina> lista() {
		return this.mDAO.todos();
	}
	
}
